package com.stlm2.dems.user.service;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource;

import com.stlm2.dems.user.entity.UserRole;
import com.stlm2.dems.user.dao.UserRoleDao;
import com.stlm2.core.base.BaseDao;
import com.stlm2.core.base.impl.BaseServiceImpl;

@Service("userRoleService")
@Transactional(rollbackForClassName={"java.lang.Exception"}, propagation = Propagation.REQUIRED)
public class UserRoleService extends BaseServiceImpl<UserRole> {

	@Resource
	private UserRoleDao userRoleDao;

	@Override
	protected BaseDao <UserRole> getDao() {
		return userRoleDao;
	}
}